package cn.iocoder.yudao.module.crossborder.platform.controller.admin.platformconfig.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import cn.idev.excel.annotation.*;

@Schema(description = "管理后台 - 跨境电商平台配置 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PlatformConfigRespVO {

    @Schema(description = "平台编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "19067")
    @ExcelProperty("平台编号")
    private Long id;

    @Schema(description = "平台代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("平台代码")
    private String code;

    @Schema(description = "平台名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @ExcelProperty("平台名称")
    private String name;

    @Schema(description = "英文名称")
    @ExcelProperty("英文名称")
    private String nameEn;

    @Schema(description = "平台类型（1电商平台 2社交电商 3自建商城）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("平台类型（1电商平台 2社交电商 3自建商城）")
    private Integer type;

    @Schema(description = "平台区域代码")
    @ExcelProperty("平台区域代码")
    private String region;

    @Schema(description = "国家代码")
    @ExcelProperty("国家代码")
    private String countryCode;

    @Schema(description = "平台官网地址", example = "https://www.iocoder.cn")
    @ExcelProperty("平台官网地址")
    private String platformUrl;

    @Schema(description = "API基础地址", requiredMode = Schema.RequiredMode.REQUIRED, example = "https://www.iocoder.cn")
    @ExcelProperty("API基础地址")
    private String apiBaseUrl;

    @Schema(description = "API版本")
    @ExcelProperty("API版本")
    private String apiVersion;

    @Schema(description = "认证类型（1OAuth2 2API密钥 3JWT 4Basic Auth）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @ExcelProperty("认证类型（1OAuth2 2API密钥 3JWT 4Basic Auth）")
    private Integer authType;

    @Schema(description = "认证配置JSON")
    @ExcelProperty("认证配置JSON")
    private String authConfig;

    @Schema(description = "频率限制配置JSON")
    @ExcelProperty("频率限制配置JSON")
    private String rateLimitConfig;

    @Schema(description = "支持的货币代码，逗号分隔")
    @ExcelProperty("支持的货币代码，逗号分隔")
    private String supportedCurrencies;

    @Schema(description = "支持的语言代码，逗号分隔")
    @ExcelProperty("支持的语言代码，逗号分隔")
    private String supportedLanguages;

    @Schema(description = "费率配置JSON")
    @ExcelProperty("费率配置JSON")
    private String feeConfig;

    @Schema(description = "同步配置JSON")
    @ExcelProperty("同步配置JSON")
    private String syncConfig;

    @Schema(description = "Webhook配置JSON")
    @ExcelProperty("Webhook配置JSON")
    private String webhookConfig;

    @Schema(description = "支持的功能特性JSON")
    @ExcelProperty("支持的功能特性JSON")
    private String features;

    @Schema(description = "状态（0正常 1停用）", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @ExcelProperty("状态（0正常 1停用）")
    private Integer status;

    @Schema(description = "是否启用", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("是否启用")
    private Boolean enabled;

    @Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("排序")
    private Integer sort;

    @Schema(description = "备注", example = "你说的对")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}
